package 集合.day2.demo8;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Test1 {
    public static void main(String[] args) {
        Map<String,String> m=new HashMap<>();
        m.put("张三","139");
        m.put("李四","159");
        m.put("李四","15888");
        System.out.println(m.containsKey("张三"));
        System.out.println(m.containsValue("139"));
        System.out.println(m);
        System.out.println(m.get("张三"));
        Set<String> keys=m.keySet();
        System.out.println(keys);

        for(String k:keys){
            System.out.println(k+"="+m.get(k));
        }

        System.out.println(m.values());

    }
}
